﻿using ConsoleApp5.Ability;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5.Combat
{
    public class SampleCombat
    {
        public List<SampleAbility> ls=new List<SampleAbility>();

        public void AddAbility(SampleAbility ability)
        {
            ls.Add(ability);
            ability.Init();
        }
        public void Trigger(AbilityTrigger trigger)
        {
            foreach(var ability in ls)
            {
                ability.Trigger(trigger);
            }
        }
    }
}
